package com.qiang;

public class Demo02 {
    public static void main(String[] args) {
        MyThread t = new MyThread();
        Thread t2 = new Thread(t);
        t2.start();
    }
}

class MyThread extends Thread {
    public void run() {
        for(int i = 0; i < 10; i++) {
            System.out.println("Value = " + i);
        }
    }
}
